import Layout from '@/layout'

const msgRouter = {
  path: '/msg',
  component: Layout,
  redirect: '/msg/list',
  name: 'msg',
  meta: {
    title: '消息管理',
    icon: 'tree-table',
    noCache: true,
    roles: ['myClinic']
  },
  children: [
    {
      path: '/msg/manager',
      component: () => import('@/views/msg/manager'),
      name: '短信服务商',
      meta: { icon: 'edit', title: '短信服务商', roles: ['clinic:info'] }
    },
    {
      path: '/msg/usual',
      component: () => import('@/views/msg/list'),
      name: 'msgList',
      meta: {icon: 'edit', title: '常用消息', roles: ['clinic:info']}
    },{
      path: '/msg/list',
      component: () => import('@/views/msg/list'),
      name: 'msgList',
      meta: {icon: 'edit', title: '消息推送', roles: ['clinic:info']}
    }]
}

export default msgRouter
